/*
utf-8
------------------------------------------------
数码管输出选择程序
------------------------------------------------
由刘丙旭出品
遵循署名-非商业性使用-相同方式共享 4.0 国际协议 (CC BY-NC-SA 4.0)
详情访问https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh
------------------------------------------------
*/

module dis_del(
input [3:0] clk_HH,clk_HL,clk_MH,clk_ML,clk_SH,clk_SL,
input [3:0] ac_HH_out,ac_HL_out,ac_MH_out,ac_ML_out,
input [3:0] ac_on_off_l,ac_on_off_r,
input [5:0] clk_dp,ac_dp,

input [1:0] sel,

output reg [3:0] dHH,dHL,dMH,dML,dSH,dSL,
output reg [5:0] dp

);

	always @(sel)
	case(sel)
	2'd0:begin 
		dHH <= clk_HH;
		dHL <= clk_HL;
		dMH <= clk_MH;
		dML <= clk_ML;
		dSH <= clk_SH;
		dSL <= clk_SL;
		dp  <= clk_dp;
	end
	2'd1:begin 
		dHH <= clk_HH;
		dHL <= clk_HL;
		dMH <= clk_MH;
		dML <= clk_ML;
		dSH <= clk_SH;
		dSL <= clk_SL;
		dp  <= clk_dp;
	end
	2'd2:begin 
		dHH <= ac_HH_out;
		dHL <= ac_HL_out;
		dMH <= ac_MH_out;
		dML <= ac_ML_out;
		dSH <= ac_on_off_l;
		dSL <= ac_on_off_r;
		dp  <= ac_dp;
	end
	default:begin
		dHH <= 4'b0000;
		dHL <= 4'b0000;
		dMH <= 4'b0000;
		dML <= 4'b0000;
		dSH <= 4'b0000;
		dSL <= 4'b0000;
		dp  <= 4'b0000;
	end
	endcase



endmodule